
$(function () {
        $("#meeting-copy .btn-close").click(function() {
            $MB.closeModal("meeting-copy");
        });

        $("#meeting-copy .btn-save").click(function() {
            $('#copyMeetingText').select();
        });
});


 function openInviteTxt(meetingId){
     $.get(ctx + "meeting/copy/" + meetingId, function(r) {
         if(r.code == 0) {
             var meetingMsg = r.msg;
             $('#meeting-copy').find("#copyMeetingText").val(meetingMsg);
             $('#meeting-copy').on('shown.bs.modal', function () {
                $('#copyMeetingText').focus().select();
             });
             $('#meeting-copy').modal();
         } else {
             $MB.n_danger(r.msg);
         }
     });
 }